Skip to content

Conversation

@FGasper
Copy link
Collaborator

@FGasper FGasper commented Nov 25, 2024

Since migration-verifier forbids DDL events during verification, it should set showExpandedEvents so that it can fail on events like create or shardCollection.

For convenience, this copies mslices.Of() from mongosync.

@FGasper FGasper requested a review from tdq45gj November 25, 2024 12:59
@FGasper FGasper marked this pull request as ready for review November 25, 2024 12:59

suite.Require().NoError(verifier.WritesOff(ctx))

err = verifierRunner.Await()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a change stream error will be returned until writesOff

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s actually indeterminate, it seems: the error may happen before writesOff, or it may happen when shutting down the change stream.

@FGasper FGasper force-pushed the felipe_expanded_events branch from 0f43765 to f3a9b91 Compare November 25, 2024 14:55
@FGasper FGasper force-pushed the felipe_expanded_events branch from 58ca577 to d1dff2b Compare November 25, 2024 15:14
@FGasper FGasper merged commit 365482d into mongodb-labs:main Nov 25, 2024
33 checks passed
@FGasper FGasper deleted the felipe_expanded_events branch November 25, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants